package com.erp.user.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.annotation.ExcelDictFormat;
import com.ruoyi.common.core.convert.ExcelDictConvert;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
 * ERP奖金池视图对象 erp_bonus_pool
 *
 * @author erp
 * @date 2023-05-11
 */
@Data
@ExcelIgnoreUnannotated
public class ErpBonusPoolVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 奖金池期数
     */
    @ExcelProperty(value = "奖金池期数")
    private String name;

    /**
     * 类型（1分公司奖金池 2代理奖金池）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=分公司奖金池,2=代理奖金池")
    private Integer type;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @ExcelProperty(value = "结束时间")
    private Date endTime;

    /**
     * 开奖时间
     */
    @ExcelProperty(value = "开奖时间")
    private String winningTime;

    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private BigDecimal amount;

    /**
     * 乐观锁
     */
    @ExcelProperty(value = "乐观锁")
    private String revision;


}
